package com.cqw.commontest.springlifecycle;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;

/**
 * @Author: caoqingwen
 * @CreateTime: 2021-11-01 16:05
 * @Description:
 */
@Component
public class LifeCycle2 implements ApplicationContextAware {


    @Override
    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
        System.out.println("applicationContext=============" + applicationContext.toString());
    }
}
